﻿<Window x:Class="SkyDriveSimpleViewer.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:proj="clr-namespace:SkyDriveSimpleViewer"
    Title="SkyDrive Simple Viewer" Height="400" Width="700" Loaded="OnWindowLoaded">
	<DockPanel Background="#EEEEEE">
		<Label DockPanel.Dock="Top" Name="Message" Style="{StaticResource Header}" Padding="10">Demonstrating WebDAV access to your SkyDrive folders</Label>
		<StackPanel DockPanel.Dock="Left" Width="200" Style="{StaticResource LeftBar}">
			<StackPanel Margin="5">
				<Label>Live ID User Name:</Label>
				<TextBox Name="UserName" />
				<Label>Live ID Password:</Label>
				<PasswordBox Name="Password" />
				<Button Click="OnLoginButton" Margin="0 5 0 0" IsDefault="True">Login to my SkyDrive</Button>
				<ListBox Name="FolderList" Margin="0 10 0 0" Visibility="Hidden" HorizontalContentAlignment="Stretch" BorderBrush="#CCCCCC"
					SelectionChanged="OnFolderSelected">
					<ListBox.ItemTemplate>
						<DataTemplate>
							<Label Content="{Binding Name}" Padding="5" />
						</DataTemplate>
					</ListBox.ItemTemplate>
				</ListBox>
			</StackPanel>
		</StackPanel>
		<StackPanel DockPanel.Dock="Top" Name="WebDAVUrlPanel" Margin="5" Visibility="Hidden">
			<Label Content="This is your WebDAV address for the selected SkyDrive folder:" />
			<TextBox DockPanel.Dock="Top" Name="WebDAVUrl" />
		</StackPanel>
		<ListBox Name="ItemList" Margin="5 0 5 5" Visibility="Hidden" BorderBrush="#CCCCCC">
			<ListBox.ItemTemplate>
				<DataTemplate>
					<Label Content="{Binding Name}" Padding="5" />
				</DataTemplate>
			</ListBox.ItemTemplate>
		</ListBox>
	</DockPanel>
</Window>
